<div ng-controller="commenCtr">
    <!--//所有评论共用-->
    <div ng-include="'tpl/logoDetail.html'" style="position: fixed;width: 100%;z-index: 10"></div>
    <!--配合导航固定定位高度和logo所在div一致-->
    <div style="width: 100%;height: 44px"></div>
    <!--hot和new点击调不同接口-->
    <div ng-include="'tpl/commNav.html'"></div>

    <div id="commentArea" class="comment" style="background: #ededed">
        <div class="conmReview">
            <div style="width: 100%;float:left">
                  <textarea id="comInput" ng-model="sendComn" class="commTextarea">
                       <!--图片上传功能-->
                      <!--<div ng-if="commentShowPic">-->
                    <div class="img-box full">
                        <section class=" img-section">
                            <!--<p class="up-p"><span class="up-span">最多可以上传5张图片，马上上传</span></p>-->
                            <div class="z_photo upimg-div clear" >
                                <section class="z_file fl">
                                    <img src="static/a11.png" class="add-img">
                                    <input type="file" name="file" id="file" class="file" value="" accept="image/jpg,image/jpeg,image/png,image/bmp;capture=camera" multiple />
                                </section>
                            </div>
                        </section>
                    </div>
                    <aside class="mask works-mask">
                        <div class="mask-content">
                            <p class="del-p ">您确定要删除图片吗？</p>
                            <p class="check-p"><span class="del-com wsdel-ok">确定</span><span class="wsdel-no">取消</span></p>
                        </div>
                    </aside>
                  </textarea>
            </div>
            <div class="conmReview_btn" style="width:100%;float:left">
                <button ng-click="cancelCom()" class="btn comBtnOne" style="margin-left: 0">取消</button>
                <button ng-click="sendCom()" class="btn comBtnTwo">发送</button>
            </div>
        </div>
    </div>
    <div id="comm_text_footer" class="comm_text_footer">
        <div class="coment-footer" style="padding: 5px 15px;">
            <span ng-click="showModeAndRepley($event)" class="com-footer-left"><img src="static/35.png"><input type="text" ng-model="commeInputs"></span>
            <span class="liveFooRig"><img src="static/26.png" ><span class="badge liveFooRigPos">{{hotComCounts||0}}</span></span>
        </div>
    </div>
    <!--评论内容-->
    <div ng-if="commenCon.length>0" class="comm_hot_con">
    <!--根据点击热门和最新不同来调用不同接口----循环内容热门评论-->
        <div ng-repeat="item in commenCon track by $index " class="comm_repeat" comm-repeat-finish>
            <div class="comm_hot_phto"><p><img ng-if="item.userID>0" src="{{item.userIcon}}" onerror="changeUserIcon(this)"><img ng-if="item.userID==0" src="static/57.png"><img ng-if="item.userID<0" src="{{siteConfigDefaultIcon}}" onerror="changeOffialUserIcon(this)"></p></div>
            <div class="comm_hot_conts">
                <div class="comm_hot_main" style="margin-bottom: 20px">
                    <div class="commt_con"><a ng-if="item.userID>=0" class="complUserName">{{item.userName}}</a><a ng-if="item.userID<0" class="complUserName">{{defaultName}}</a><span class="complUserTime">{{item.created|actHour}}</span></div>
                    <div ng-click="replayCom(item.id,item.userName,item.userID)" style="margin-top: 15px;color: #333333;">{{item.content}}</div>
                </div>
                <div ng-if="item.attachments[0].url" class="comm_hot_conts_img">
                    <img ng-src="{{item.attachments[0].url}}">
                </div>
                <!--回复-->
                <div ng-repeat="reply in item.topDiscuss.list" class="comm_hot_reply">
                    <div >
                        <div id="commt_com_repla"><a ng-if="reply.userID>=0">{{reply.userName}}</a><a ng-if="reply.userID<0">{{defaultName}}</a></div>
                        <div ng-click="replayCom(reply.id,reply.userName)" class="commt_com_repla_con">{{reply.content}}</div>
                    </div>
                    <div ng-if="reply.attachments[0].url" class="comm_hot_conts_img">
                        <img ng-src="{{reply.attachments[0].url}}">
                    </div>
                </div>
                <div ng-if="item.topDiscuss.list.length>2&&lunchaMorChilCom" ng-click="checkMorChildCom(item.id,$index)" class="com-childen-more">更多{{item.topDiscuss.list.length}}条回复 <span class="glyphicon glyphicon-chevron-right"></span></div>
                <div ng-if="item.topDiscuss.list.length>2&&hasChildMorCom.index" class="com-childen-more">更多评论回复</div>
                <!--<div ng-if="item.topDiscuss.list.length>=2&&hasNoChildMorCom.index" class="com-childen-more">没有更多评论回复</div>-->
            </div>
        </div>
    </div>
    <no-latest-comments ng-if="commenCon.length<=0"></no-latest-comments>
    <!--模态框-->
    <div id="commentModle" class="commentMod"></div>
    <div ng-if="hasMorCom" ng-click="LoadMoreCom()" class="btn btn-block com-more">加载更多 <img src="static/7.png"></div>
<!--<div ng-if="!hasMorCom" class="btn btn-block com-more">没有更多评论</div>-->
    <!--按钮-->
    <div class="fiBtn">
        <div ng-show=true ng-click="goBackTop()" class="baToTop">
            <img src="static/19.png" alt="">
        </div>
    </div>
    <div class="fiBtnTop">
        <div ng-show=true ng-click="home()" class="baToTop">
            <img src="static/20.png" alt="">
        </div>
    </div>
    <div style="height: 200px"></div>
</div>

